package com.gem.back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gem.back.entity.AoaPosition;
import com.gem.back.mapper.AoaPositionMapper;
import com.gem.back.service.IAoaPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hhhy
 * @since 2020-02-22
 */
@Service
public class AoaPositionServiceImpl extends ServiceImpl<AoaPositionMapper, AoaPosition> implements IAoaPositionService {
    @Autowired
    private AoaPositionMapper aoaPositionMapper;

    @Override
    public AoaPosition findPositionByName(String userName) {
        return aoaPositionMapper.findPositionByName(userName);
    }

    @Override
    public AoaPosition findOnePositionById(Integer positionId) {
        return aoaPositionMapper.selectOnePositionById(positionId);
    }
}
